<%-- 
    Document   : cerrarsesion
    Created on : 14-feb-2013, 18:59:36
    Author     : ciberia
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%

    if(session.isNew())
    {
        
        
        request.getSession(false);
        session.invalidate();
        this.destroy();
        response.sendRedirect("index.jsp");
        System.out.print("Sistema destruido :"+ session.getId()); 
    }else{    
        if(session == null)
        {
            request.getSession(false);
            session.invalidate();
            this.destroy();
            
            response.sendRedirect("index.jsp");
            System.out.print("Sistema destruido :"+ session.getId());
        }
        request.getSession(false);
        session.invalidate();
        this.destroy();
        response.sendRedirect("index.jsp");
        System.out.print("Sistema destruido :"+ session.getId());
    }
%>
